import React ,{useEffect}from 'react'
import {connect} from 'react-redux'
import axios from '../../axios二次封装/require'
 function Home(props) {
   useEffect(()=>{
     axios.get('/api/blueberrypai/getIndexBanner.php',{
       user_id:'iwen@qq.com',
       password:'iwen123',
       verification_code:'crfw'
     })
     .then(res=>{
       console.log('+++' ,res.data);
     })
   },[])

   
  return (
    <div>Home
     <p>用户名称:{props.user}</p>
    </div>
  )
}
export default connect(state=>{
  return {
    user:state.user.username
  }
})(Home)
